package com.sub.project.info.service.impl;

import java.util.List;

import com.sub.project.info.domain.UserEducational;
import com.sub.project.info.mapper.UserEducationalMapper;
import com.sub.project.info.service.IUserEducationalService;
import com.sub.project.info.vo.EducationSchoolVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-01-07
 */
@Service
public class UserEducationalServiceImpl extends ServiceImpl<UserEducationalMapper, UserEducational> implements IUserEducationalService
{

    @Autowired
    private UserEducationalMapper userEducationalMapper;

    @Override
    public List<EducationSchoolVo> findByopenId(String openId) {
//        Map<String, Object> columnMap = new HashMap();
//        columnMap.put("user_id",openId);
        List<EducationSchoolVo> userEducationals = userEducationalMapper.getEducationSchool(openId);
        return userEducationals;
    }

    @Override
    public EducationSchoolVo findById(Long openId) {
        return userEducationalMapper.getEducationSchoolById(openId);
    }
}
